import Vue from "vue"
import VueRouter from "vue-router"


Vue.use(VueRouter)

const routes = [{
    path: "/home",
    alias: "/",
    name: "home",
    component: () => import("@/pages/home/home.vue")
},
{
    path: "/list",
    name: "list",
    component: () => import("@/pages/list/list.vue")
},
{
    path: "/shopcar",
    name: "shopcar",
    component: () => import("@/pages/shopcar/shopcar.vue")
},
{
    path: "/user",
    name: "user",
    component: () => import("@/pages/user/user.vue")
},
{
    path: "/details",
    name: "details",
    component: () => import("@/pages/details/details.vue")
}
]

export default new VueRouter({
    routes
})